#while实现循环
'''
n = 100
sum = 0
counter = 1
while counter <= n:
    sum = sum + counter
    counter += 1
print("1到100的和为:%d"%sum)
'''
#for实现循环
sum=0
for i in range(1 , 101):
    sum = sum + i
    i += 1
print("1到100的和为：%d"%sum)

print("计科1814-34-郭文聪")